<meta title="管理日志"/>
<form class="form-inline" id="adminLogSearchForm" s="form"
      s-form="{action: function(){S.N('#page').val(1); adminLogGrid.refresh();}}">
    <input type="text" name="name" class="form-control" placeholder="搜索"/>
    <input type="hidden" name="page" value="1" id="page"/>
    <!--<input type="hidden" name="pageSize" value="100"/>-->
    <input type="submit" class="btn btn-success" value="查找"/>
</form>
<table s="check,nda,datac" s-data="S.get('/api/admin/adminLog', S.N('#adminLogSearchForm').serialize())" id="adminLogGrid"
       class="table table-striped table-hover" style="width: 100%;">
    <thead>
    <tr>
        <th style="width: 25%;">管理员</th>
        <th style="width: 10%;">权限</th>
        <th style="width: 15%;">ip</th>
        <th style="width: 10%;">创建时间</th>
        <th style="width: 10%;">路径</th>
        <th style="width: 10%;">方法</th>
    </tr>
    </thead>
    <tbody s="loop" s-data-filter="'list'">
    <tr s-loop-role="empty">
        <td colspan="11">
            <div class="s-ui-none-data-info text-center"><i class="fa fa-info-circle text-info"></i> 未查询到数据</div>
        </td>
    </tr>
    <tr s-loop-role="loading">
        <td colspan="11">
            <div class="text-center" style="padding: 20px;"><i class="fa fa-spinner fa-spin fa-3x fa-fw"></i></div>
        </td>
    </tr>
    <tr s-loop-role="row" s="datac,row">
        <td name="adminName"/></td>
        <td name="name"></td>
        <td name="ip"></td>
        <td name="createDate"></td>
        <td name="path"></td>
        <td name="method"></td>
    </tr>
    </tbody>
    <tfoot>
    <tr>
        <td colspan="11" class="s-ui-pagination-wrapper">
            <ul s="pagination" id="adminLogBillPagination"
                s-pagination="{action:function(){S.N('#page').val(this); adminLogGrid.refresh()}}"
                class="pagination pagination-sm pull-right" style="margin: 0">
            </ul>
            <div class="s-ui-pagination-info pull-right">共有<span name="allCount"></span>条记录</div>
        </td>
    </tr>
    </tfoot>
</table>
<script>
    var adminLogGrid = S.S('#adminLogGrid');
</script>